package com.ruoyi.express.third.exception;

public class ThirdApiException extends RuntimeException {

    protected String errorCode;

    public ThirdApiException(String errorCode, String errorInfo) {
        super(errorInfo);
        this.errorCode = errorCode;
    }

    public ThirdApiException(String errorCode, String errorInfo, Throwable e) {
        super(errorInfo, e);
        this.errorCode = errorCode;
    }

    public ThirdApiException(String errorCode, Throwable e) {
        super(e);
        this.errorCode = errorCode;
    }

    public ThirdApiException( Throwable e) {
        super(e);
    }

}